package com.wn.sk.product.tast;

import java.util.Date;
import java.util.TimerTask;

/**
 * @author yellow Docter
 * @date 2022 -11-08
 * @desc
 *
 *  01 通过 jdk的timer 实现定时任务
 *
 */
public class MyTask  extends TimerTask {
    @Override
    public void run() {
        System.out.println("定时任务 = " + new Date() + ":中奖了...");
    }
}
